﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace BLL
{
    /// <summary>
    /// 用户登录
    /// </summary>
    public class UserLogon
    {
        public UserLogon()
        { }
        DAL.UserLogon dal = new DAL.UserLogon();
        /// <summary>
        /// 用户账户 注册
        /// </summary>
        /// <param name="model">注册实体</param>
        /// <returns>是否执行成功</returns>
        public bool UserLogonAdd(MODEL.UserLogon model)
        {
            return dal.UserLogonAdd(model);
        }
        /// <summary>
        /// 用户账户 停用
        /// </summary>
        /// <param name="uId">用户编号</param>
        /// <returns>是否执行成功</returns>
        public bool UserLogonDel(string uId)
        {
            return dal.UserLogonDel(uId);
        }
        /// <summary>
        /// 用户账户 修改密码
        /// </summary>
        /// <param name="model">信息实体</param>
        /// <returns>是否执行成功</returns>
        public bool UserLogonUpdatePassword(MODEL.UserLogon model)
        {
            return dal.UserLogonUpdatePassword(model);
        }
        /// <summary>
        /// 用户账户 登录
        /// </summary>
        /// <param name="model">登录信息实体</param>
        /// <returns>是否验证成功</returns>
        public bool UserLogonCheck(MODEL.UserLogon model)
        {
            return dal.UserLogonCheck(model);
        }
        /// <summary>
        /// 用户账户 账户激活
        /// </summary>
        /// <param name="userId">用户编号</param>
        /// <param name="regTime">注册时间</param>
        /// <returns>激活是否成功</returns>
        public bool UserLogonUpdateState(string userId, string logonIp)
        {
            return dal.UserLogonUpdateState(userId, logonIp);
        }
        /// <summary>
        /// 用户账户 列表
        /// </summary>
        /// <returns>列表</returns>
        public DataSet UserLogonList()
        {
            return dal.UserLogonList();
        }
        /// <summary>
        /// 用户账户 实体
        /// </summary>
        /// <param name="uId">用户编号</param>
        /// <returns>实体</returns>
        public MODEL.UserLogon GetUserLogonModel(string uId)
        {
            return dal.GetUserLogonModel(uId);
        }
        /// <summary>
        /// 用户账户 列表
        /// </summary>
        /// <param name="userState">用户状态</param>
        /// <returns>列表</returns>
        public DataSet UserLogonList(bool userState)
        {
            return dal.UserLogonList(userState);
        }
        /// <summary>
        /// 用户账户 列表
        /// </summary>
        /// <param name="userName">用户名称</param>
        /// <returns>列表</returns>
        public DataSet UserLogonList(string userName)
        {
            return dal.UserLogonList(userName);
        }
        /// <summary>
        /// 用户账户 判断用户名是否可用
        /// </summary>
        /// <param name="userName">用户名</param>
        /// <returns>列表</returns>
        public DataSet UserNameCheck(string userName)
        {
            return dal.UserNameCheck(userName);
        }
        /// <summary>
        /// 用户账户 查询用户编号
        /// </summary>
        /// <param name="userName">用户名称</param>
        /// <returns>列表</returns>
        public DataSet UserLogonListByName(string userName)
        {
            return dal.UserLogonListByName(userName);
        }
        /// <summary>
        /// 用户账户 获取最大编号
        /// </summary>
        /// <returns>最大编号</returns>
        public string GetMaxId()
        {
            return dal.GetMaxId();
        }
        /// <summary>
        /// 用户账户 验证用户名密码
        /// </summary>
        /// <param name="model">用户实体</param>
        /// <returns>验证是否成功</returns>
        public bool CheckPassword(MODEL.UserLogon model)
        {
            return dal.CheckPassword(model);
        }
    }
    /// <summary>
    /// 密码保护
    /// </summary>
    public class UserPassSafeGuard
    {
        public UserPassSafeGuard()
        { }
        DAL.UserPassSafeGuard dal = new DAL.UserPassSafeGuard();
        /// <summary>
        /// 密码保护 设置
        /// </summary>
        /// <param name="model">密码保护实体</param>
        /// <returns>是否执行成功</returns>
        public bool UserPassSafeGuardAdd(MODEL.UserPassSafeguard model)
        {
            return dal.UserPassSafeGuardAdd(model);
        }
        /// <summary>
        /// 密码保护 修改
        /// </summary>
        /// <param name="model">密码保护实体</param>
        /// <returns>是否执行成功</returns>
        public bool UserPassSafeGuardUpdate(MODEL.UserPassSafeguard model)
        {
            return dal.UserPassSafeGuardUpdate(model);
        }
        /// <summary>
        /// 密码保护 密保列表
        /// </summary>
        /// <param name="uId">用户编号</param>
        /// <returns>列表</returns>
        public DataSet UserPassSafeGuardList(string uId)
        {
            return dal.UserPassSafeGuardList(uId);
        }
        /// <summary>
        /// 密码保护 验证密保
        /// </summary>
        /// <param name="model">密码保护实体</param>
        /// <returns>密保是否正确</returns>
        public bool UserPassSafeGuardCheck(MODEL.UserPassSafeguard model)
        {
            return dal.UserPassSafeGuardCheck(model);
        }
    }
    /// <summary>
    /// 密保问题
    /// </summary>
    public class UserQuestion
    {
        public UserQuestion()
        { }
        DAL.UserQuestion dal = new DAL.UserQuestion();
        /// <summary>
        /// 密保问题 添加
        /// </summary>
        /// <param name="model">密保实体</param>
        /// <returns>是否执行成功</returns>
        public bool UserQuestionAdd(MODEL.UserQuestion model)
        {
            return dal.UserQuestionAdd(model);
        }
        /// <summary>
        /// 密保问题 删除
        /// </summary>
        /// <param name="questionId">密保编号</param>
        /// <returns>是否执行成功</returns>
        public bool UserQuestionDel(int questionId)
        {
            return dal.UserQuestionDel(questionId);
        }
        /// <summary>
        /// 密保问题 列表
        /// </summary>
        /// <returns>列表</returns>
        public DataSet UserQuestionList()
        {
            return dal.UserQuestionList();
        }
        /// <summary>
        /// 密保问题 列表
        /// </summary>
        /// <param name="questionId">密保编号</param>
        /// <returns>列表</returns>
        public DataSet UserQuestionList(int questionId)
        {
            return dal.UserQuestionList(questionId);
        }
        /// <summary>
        /// 密保问题 内容
        /// </summary>
        /// <param name="questionId">密保编号</param>
        /// <returns>内容</returns>
        public string UserQuestionById(int questionId)
        {
            return dal.UserQuestionById(questionId);
        }
        /// <summary>
        /// 密保问题 列表
        /// </summary>
        /// <param name="questionState">问题状态</param>
        /// <returns>列表</returns>
        public DataSet UserQuestionList(bool questionState)
        {
            return dal.UserQuestionList(questionState);
        }
    }
    /// <summary>
    /// 用户消费
    /// </summary>
    public class UserConsumotion
    {
        public UserConsumotion()
        { }
        DAL.UserConsumotion dal = new DAL.UserConsumotion();
        /// <summary>
        /// 用户消费 添加
        /// </summary>
        /// <param name="model">用户消费实体</param>
        /// <returns>是否执行成功</returns>
        public bool UserConsumotionAdd(MODEL.UserConsumotion model)
        {
            return dal.UserConsumotionAdd(model);
        }
        /// <summary>
        /// 用户消费 修改
        /// </summary>
        /// <param name="model">用户消费实体</param>
        /// <returns>是否执行成功</returns>
        public bool UserConsumotionUpdate(MODEL.UserConsumotion model)
        {
            return dal.UserConsumotionUpdate(model);
        }
        /// <summary>
        /// 用户消费 列表
        /// </summary>
        /// <returns>列表</returns>
        public DataSet UserConsumotionList()
        {
            return dal.UserConsumotionList();
        }
        /// <summary>
        /// 用户消费列表
        /// </summary>
        /// <param name="uId">用户编号</param>
        /// <returns>列表</returns>
        public DataSet UserConsumotionList(string uId)
        {
            return dal.UserConsumotionList(uId);
        }
    }
    /// <summary>
    /// 用户游戏
    /// </summary>
    public class UserGameInformation
    {
        public UserGameInformation()
        { }
        DAL.UserGameInformation dal = new DAL.UserGameInformation();
        /// <summary>
        /// 用户游戏 添加
        /// </summary>
        /// <param name="model">用户游戏实体</param>
        /// <returns>是否执行成功</returns>
        public bool UserGameInformationAdd(MODEL.UserGameInformation model)
        {
            return dal.UserGameInformationAdd(model);
        }
        /// <summary>
        /// 用户游戏 列表
        /// </summary>
        /// <returns>列表</returns>
        public DataSet UserGameInformationList()
        {
            return dal.UserGameInformationList();
        }
        /// <summary>
        /// 用户游戏 列表
        /// </summary>
        /// <param name="uId">用户编号</param>
        /// <returns>列表</returns>
        public DataSet UserGameInformationList(string uId)
        {
            return dal.UserGameInformationList(uId);
        }
    }
    /// <summary>
    /// 用户信息
    /// </summary>
    public class UserInformation
    {
        public UserInformation()
        { }
        DAL.UserInformation dal = new DAL.UserInformation();
        /// <summary>
        /// 用户信息 添加
        /// </summary>
        /// <param name="model">用户信息实体</param>
        /// <returns>执行是否成功</returns>
        public bool UserInformationAdd(MODEL.UserInformation model)
        {
            return dal.UserInformationAdd(model);
        }
        /// <summary>
        /// 用户信息 修改
        /// </summary>
        /// <param name="model">用户信息实体</param>
        /// <returns>是否执行成功</returns>
        public bool UserInformationUpdate(MODEL.UserInformation model)
        {
            return dal.UserInformationUpdate(model);
        }
        /// <summary>
        /// 用户信息 列表
        /// </summary>
        /// <returns>列表</returns>
        public DataSet UserInformationList()
        {
            return dal.UserInformationList();
        }
        /// <summary>
        /// 用户信息 实体
        /// </summary>
        /// <param name="uId">用户编号</param>
        /// <returns>实体</returns>
        public MODEL.UserInformation GetUserInformationModel(string uId)
        {
            return dal.GetUserInformationModel(uId);
        }
        /// <summary>
        /// 用户信息 是否以存在信息
        /// </summary>
        /// <param name="userId">用户编号</param>
        /// <returns>是否存在</returns>
        public bool CheckUserInformation(string userId)
        {
            return dal.CheckUserInformation(userId);
        }
    }
}
